<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/7/2
  Time: 10:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>直播带货信息列表</title>
</head>
<body>
<h1>直播带货信息列表</h1>
<table border="1">
    <tr>
        <th>主播姓名</th>
        <th>直播平台</th>
        <th>带货产品</th>
        <th>直播时间</th>
        <th>操作</th>
    </tr>
    <tbody>
    <c:forEach items="${list}" var="live">
        <tr>
            <td>${live.streamer}</td>
            <td>${live.livePlatform}</td>
            <td>${live.product}</td>
            <td><fmt:formatDate value="${live.liveTime}" pattern="yyyy-MM-dd'T'HH:mm"/> </td>
            <td>
                <a href="${pageContext.request.contextPath}/live/list2?id=${live.id}">详情</a>
                <a href="${pageContext.request.contextPath}/live/Update?id=${live.id}">修改</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>i9
<div>
    <a href="${pageContext.request.contextPath}/live/Add">添加直播带货信息</a>
</div>
</body>
</html>
